home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010306-20010921 / 000189_alweston@netcene.com.NOSPAM_Thu May 31 14:26:37 EDT 2001.msg < prev    next >
Text File  |  2020-01-01  |  4KB  |  98 lines

  1. Article: 12497 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!newsfeed.mathworks.com!news.maxwell.syr.edu!newsfeed.stanford.edu!novia!sequencer.newscene.com!not-for-mail
  3. From: Al Weston <alweston@netcene.com.NOSPAM>
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Receive Errors moving from Kermit 6 to Kermit 7
  6. Date: 31 May 2001 13:08:08 -0500
  7. Organization: H.O. Systems, Inc.
  8. Lines: 81
  9. Message-ID: <dstchtsrc3st7vt752ojtlivp0d7pb4fa1@4ax.com>
  10. Reply-To: alweston@netcene.com.NOSPAM
  11. X-Newsreader: Forte Agent 1.8/32.548
  12. MIME-Version: 1.0
  13. Content-Type: text/plain; charset=us-ascii
  14. Content-Transfer-Encoding: 7bit
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12497
  16.  
  17. I'm having a problem moving from Kermit 6 to Kermit 7. I have a script
  18. that uses kermit to retrieve a file from a dialup server running
  19. something called Data Express on a Tandem system. Getting more info on
  20. the sending system is like pulling teeth. They don't seem to know what
  21. they have.
  22.  
  23. The script was built for Kermit 6.0.192 running on SCO OpenServer
  24. 5.0.5, and it works just fine on this platform. But  the same script
  25. when run under Kermit 7.0.196 on AIX 4.3.3 fails every time with an
  26. error message of "Refused, format" during the transfer. I can connect,
  27. login, etc., just fine, but once the file transfer begins, I get the
  28. same error every time. The file I'm retrieving is a plain text file.
  29. It's the same kind of modem (Hayes Optima) on both systems, and the
  30. serial port settings are the same (8N1, 19200).
  31.  
  32. I can't find anything that explains this error message, but after
  33. digging through much of the Kermit documentation, it appears that are
  34. many differences in Kermit 7's default behaviors. I'm guessing that
  35. one of these differences is causing me problems. If that's the case,
  36. then I need to understand how to make Kermit 7 behave like Kermit 6.
  37. Here's what the script looks like:
  38.  
  39.  
  40. ;
  41. ; define \%u stuff deleted...
  42.  
  43. define \%s 20               ; Time for pause between redials
  44. define \%n 1234567      ; Phone number
  45. set port /dev/tty1        ; Communications port
  46. set modem hayes-high-speed  ; Modem type
  47. set modem command init-string at\n0%c0\13
  48. set exit warning off
  49. set prefixing all
  50. set terminal autodownload off
  51. set terminal apc off
  52.  
  53. set file type binary     ; File transfer mode must be binary
  54. set send packet-length 94
  55. set receive packet-length 500
  56. set block-check 3
  57. set buffers 280000 280000
  58. set window 4
  59. set input timeout quit   ; (to keep the script program short)
  60. set receive timeout 20
  61. set count 3              ; Try up to 3 times
  62. goto nomsg               ; Skip message the first time
  63.  
  64. :LOOP                    ; Come here to redial
  65. hangup                   ; Give the phone line a rest
  66. echo CONNECTION BROKEN.
  67. echo Pausing for \%s seconds...
  68. sleep \%s
  69. Echo redialing...
  70.  
  71. :NOMSG
  72. dial \%n                 ; Dial the phone number
  73. if failure goto AGAIN    ; Keep trying
  74. input 20 LOGDX:          ; Get First name prompt
  75. output \%u\13            ; Send Login Stream
  76. kermit -r             ; kermit -r(ecieve) on remote system
  77. if success goto DONE     ; = file is completely transferred
  78. else goto FAILED
  79.  
  80. :AGAIN
  81. if count goto loop       ; Otherwise, try again.
  82. Stop 1 Too many tries.   ; Too many tries, give up.
  83.  
  84.  
  85. :FAILED
  86. echo File not transferred, try again.
  87. pause 6
  88. hangup
  89. Exit
  90.  
  91. :DONE
  92. echo File transferred OK ; Success, give message
  93. pause 5                  ; Give it time...
  94. hangup                   ; Hang up
  95. Exit
  96.  
  97.  
  98.